// 风险预测模型
export interface RiskPrediction {
  id: string;
  patientId: string;
  type: 'bloodSugar' | 'bloodPressure' | 'heartRate' | 'respiratory' | 'general';
  riskLevel: 'low' | 'moderate' | 'high' | 'critical';
  predictedTime: Date;
  confidence: number; // 置信度（0-1）
  factors: RiskFactor[];
  recommendations?: string[];
  isHandled: boolean;
}

// 风险因素模型
export interface RiskFactor {
  name: string;
  value: number | string;
  impact: number; // 影响程度（0-1）
}

// 预警通知模型
export interface Alert {
  id: string;
  patientId: string;
  type: 'risk' | 'task' | 'doctor' | 'system';
  title: string;
  message: string;
  severity: 'info' | 'warning' | 'danger';
  timestamp: Date;
  isRead: boolean;
  actionUrl?: string;
  alertMethod: ('popup' | 'sms' | 'voice')[];
}

// 预测结果模型
export interface PredictionResult {
  type: 'bloodSugar' | 'bloodPressure' | 'heartRate' | 'weight' | 'exercise';
  next24h: number[]; // 未来24小时预测值
  next7d: number[]; // 未来7天预测值
  trend: 'stable' | 'increasing' | 'decreasing' | 'fluctuating';
  riskAssessment: string;
}